package one.stand.mapper;

import one.stand.model.LiveRoom;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface LiveRoomMapperExt extends LiveRoomMapper {

    List<String> selectGroupIds();

    LiveRoom selectByGroupId(@Param("groupId") String groupId);

    List<LiveRoom> selectList(@Param("companyId") Integer companyId, @Param("keyword") String keyword, @Param("viewDate") Date viewDate);

    List<LiveRoom> selectMyList(@Param("cardId") Integer cardId, @Param("videoType") Integer videoType);

    List<LiveRoom> selectTimeoutList(@Param("timeoutTime") String timeout);

    List<LiveRoom> selectEndTimeoutList(@Param("timeoutTime") String timeout);

    void updateDelete(@Param("id") Integer id);

    void updateOn(@Param("id") Integer id);

    void updateDown(@Param("id") Integer id);

    void updateEnd(@Param("id") Integer id);
}